[<tag id="resourcepath" type="meta" value="/DesktopModules/NBright/NBrightEspace/App_LocalResources/" />]
[Template:scriptincludes.html]
<script>

    $(function () {

        $("#tabs").tabs();
        $.datepicker.setDefaults($.datepicker.regional[['en-GB']]);
        $('input[[name$="dateRegistrarRenew"]]').datepicker();
        $('input[[name$="dateClientRenew"]]').datepicker();
        $('input[[name$="dateTest"]]').datepicker();

        $.fn.popupformlist('#dialogemail', '#urlemails', '#dialoglink', '.ajaxbutton', '/desktopmodules/Nbright/NBrightEspace/XmlConnector.ashx?cmd=setdata&templ=urlemail.xsl&ctltype=URLEMAIL&itemid=[<tag type="valueof" xpath="genxml/hidden/itemid" />]', 600);

        $('#dialogemail').bind('beforeupdate', function (event) {
            $('.clientidonemail').val($('.clientid').val());
            $('.liveurlonemail').val($('.txturl').val());
        });

    }); 
	

$(document).ready(function(){
    var cmdget = '/desktopmodules/Nbright/NBrightEspace/XmlConnector.ashx?cmd=getdata&templ=urlemail.xsl&ctltype=URLEMAIL&itemid=[<tag type="valueof" xpath="genxml/hidden/itemid" />]';
	$.fn.initlist('#urlemails', '.ajaxbutton', cmdget);				
    cmdget = '/desktopmodules/Nbright/NBrightEspace/XmlConnector.ashx?cmd=getdata&templ=urlweb.xsl&ctltype=URLWEBXREF&itemid=[<tag type="valueof" xpath="genxml/hidden/itemid" />]';
	$.fn.initlist('.websitedetails', '', cmdget);

});

</script>	

<div class="nwb-button-container">
[<tag id="cmdUpdate2" type="linkbutton" text="Update Exit" tooltip="Update" cssclass="nwb-button primary icon approve" commandname="Updateexit" commandargument="ItemID"/>]&nbsp;
[<tag id="cmdUpdate1" type="linkbutton" text="Update" tooltip="Update" cssclass="nwb-button primary icon approve" commandname="Update" commandargument="ItemID"/>]&nbsp;
[<tag id="cmdDelete1" type="linkbutton" text="Delete" tooltip="Delete" cssclass="nwb-button danger icon remove" commandname="Delete" commandargument="ItemID" confirm="Delete Item?" />]&nbsp;
[<tag id="cmdCancel1" type="linkbutton" text="Cancel" tooltip="Cancel" commandname="Cancel" cssclass="nwb-button danger" commandargument="ItemID" causesvalidation="False"/>]&nbsp;
</div>
<div>
[<tag id="UrlRef" type="hidden" value="" />]
[<tag id="CreatedBy" type="hidden" value="" />]
[<tag id="ItemID" type="hidden" value="databind:ItemID" />]
[<tag id="LockedBy" type="hidden" value="" />]
[<tag id="htmlDisplayLockedBy" type="hidden" value="" />]
[<tag type="valueof" xpath="genxml/hidden/htmldisplaylockedby" />]
[<tag id="UrlSelectedId" type="hidden" value="" />]
[<tag id="UrlSelected" type="hidden" value="" />]

<table class="normal" border="0px" cellpadding="1px" cellspacing = "1px">
<tr>
<td>

<table class="normal" border="0px" cellpadding="1px" cellspacing = "1px">
<tr>
<td align="right">Domain Ref : </td>
<td>[<tag type="valueof" xpath="genxml/hidden/urlref" />]</td>
</tr>
<tr>
<td align="right">Domain URL : </td>
<td>[<tag id="txtURL" type="textbox" cssclass="txturl" width="250" maxlength="100" />]</td>
</tr>
<tr>
<td align="right">[<tag id="cmdSelectUrl" type="linkbutton" text="" tooltip="Select Url" src="/DesktopModules/NBright/NBrightEspace/img/search.png" commandname="SelectUrl" commandargument="ItemID" />]Redirect To : </td>
<td>[<tag type="valueof" xpath="genxml/hidden/urlselected" />]
<span [<tag type="testof" xpath="genxml/hidden/urlselected" testvalue="" display="style='display:none;'" displayelse="" />]>
[<tag id="cmdRemoveRedirectUrl" type="linkbutton" text="" tooltip="Remove Redirect Url" src="/DesktopModules/NBright/NBrightEspace/img/delete.png" commandname="RemoveRedirectUrl" commandargument="ItemID" />]
</span>
</td>
</tr>
<tr>
<td align="right">Live IP : </td>
<td>[<tag id="txtLiveIP" type="textbox" width="250" maxlength="200" />]</td>
</tr>
<tr>
<td align="right">Live CNAME : </td>
<td>[<tag id="txtLiveCName" type="textbox" width="250" maxlength="200" />]</td>
</tr>
<tr>
<td align="right"></td>
<td>[<tag id="chkIsDefaultUrl" type="checkbox" text="Is Default Url" />]</td>
</tr>
</table>

</td>
<td>

[Template:ClientBasicSelect.html]

</td>
</tr>
</table>
<div>
Notes : <br/>
[<tag id="txtURLNotes" type="textbox" height="100" width="800" maxlength="2000" textmode="MultiLine" />]</td>
</div>
			<br/>
		<div id="tabs">
			<ul>
				<li><a href="#tabs-1">General</a></li>
				<li><a href="#tabs-2">Email Redirects</a></li>
				<li><a href="#tabs-3">History</a></li>
			</ul>
			<div id="tabs-1">		
<table>
<tr>
<td valign="top">
		
<table>
<tr>
<td align="right">Price (Net) : </td>
<td>[<tag id="txtPrice" type="textbox" width="250" maxlength="200"  text="0" datatype="Double" />][<tag id="rvPrice" ctrltype="rvalidator" errormessage="Price Error" text="ERR!" controltovalidate="txtPrice" minimumvalue="0" maximumvalue="99" type="Currency"/>]</td>
</tr>
<tr>
<td align="right">Registrar Renew Date : </td>
<td>[<tag id="dateRegistrarRenew" datatype="date" type="textbox" width="100" />]</td>
</tr>
<tr>
<td align="right">Client Renew Date : </td>
<td>[<tag id="dateClientRenew"  datatype="date" type="textbox" width="90" />]</td>
</tr>
</table>

</td>
<td valign="top">
<div class="websitedetails">
</div>
</td>
</tr>
</table>

			</div>
			<div id="tabs-2">
				<div class="nwb-button-container">
					<a href="#" id="dialoglink" class="nwb-button icon add" >Add Email</a>
				</div>
				<div id="urlemails">				
				</div>
				<div id="dialogemail">
					[<tag id="ClientIdOnEmail" class="clientidonemail" type="hidden" value="" />]
					[<tag id="LiveUrlOnEmail" class="liveurlonemail" type="hidden" value="" />]
					[<tag id="txtFromEmail" type="textbox" width="100" />]@ ->[<tag id="txtToEmail" type="textbox" width="250" />]<br/>
				</div>							
			</div>
			<div id="tabs-3">
			[Template:HistoryAuditCtrl.html]	
			</div>
		</div>

        <font size="1px">Last Modified : [<tag type="valueof" databind="ModifiedDate" />]</font>
</div>

